# coding: utf-8

from django.conf.urls.defaults import *

urlpatterns = patterns('favshop.views', # service pages
    (r'^$', 'default'),
    (r'^about$', 'about'),
    (r'^adduser$', 'addfavshopuser'),
    (r'^subscribe$', 'subscribeshop'),
    (r'^unsubscribe$', 'unsubscribeshop'),
    (r'^sidebar$', 'getsidebar'),
    (r'^maincontent$', 'getmaincontent'),
    (r'^changeevent$', 'getchangeevent'),
) + patterns('favshop.views', # test pages
    (r'^test/validateuser$', 'testvalidateuser'),
    (r'^test/itemsget$', 'testitemsget'),
    (r'^test/shopget$', 'testshopget'),
    (r'^test/userget$', 'testuserget'),
) + patterns('favshop.crontasks', # cron job pages
    (r'^crontasks/(?P<index>\d+)$', 'crontasks'),
    (r'^crontasks/fetchshop/(?P<index>\d+)$', 'crontask_fetchshop'),
)